package com.example.demo;

/**
 * @Description:
 * @Author: ywk
 * @Date: 2020/1/7 0007 22:01
 */
public class ExcepitonT {
    public static void main(String[] args) throws ArithmeticException {
        int num = 0;
        try {
            num = num / 0;
        } catch (Exception e) {
            e.printStackTrace();
        }
        if (num == 0) {
            throw new ArithmeticException();
        }
        System.out.println("hello");
    }
}
